﻿using System;
using System.Collections.Generic;

namespace Sharp.Infrastructure.Model
{
    /// <summary>
    /// 数据权限接口
    /// </summary>
    public interface IDataPermission
    {
        /// <summary>
        /// 数据权限，部门模式
        /// </summary>
        /// <param name="entityType"></param>
        /// <returns></returns>
        IEnumerable<Guid?> GetDataPermissionForDev(Type entityType);
        /// <summary>
        /// 数据权限，个人模式
        /// </summary>
        /// <returns></returns>
        IEnumerable<int?> GetDataPermissionForUser(Type entityType);
    }
}
